{extend name="template/base_iframe" /}


{block name="style"}
	<link rel="stylesheet" type="text/css" href="__LIB__/ueditor/1.4.3/themes/default/css/ueditor.css"/>
{/block}

{block name="content"}

<div id="" >
	<form class="form form-horizontal" action="{:url('add_proc')}" id="" >
		<input type="hidden" name="id" value="{$data.id}">
		<div class="row cl">
		    <label class="form-label col-xs-3 col-ms-3">资讯标题</label>
		    <div class="formControls col-xs-6 col-ms-6">
		        <input name="title" type="text" placeholder="请输入资讯标题" value="{$data.title}" class="input-text radius group-title">
		    </div>
		</div>

		<div class="row cl">
		    <label class="form-label col-xs-3 col-ms-3">资讯分类</label>
		    <div class="formControls col-xs-6 col-ms-6">
		        <span class="select-box  radius">
		          <select class="select" size="1" name="cid">
		            <option value="" >请选择资讯分类</option>
		            {volist name="acTree" id="v"}
		            	{if condition="$v.pid == 0"}
		            		<option value="{$v.id}" disabled>{$v.name}</option>
							{volist name="acTree" id="v1"}
								{if condition="$v1.pid == $v.id"}
									<option value="{$v1.id}" {$v1.id == $data.cid?'selected':''}>|—— {$v1.name}</option>
								{/if}
							{/volist}
		            	{/if}
		            {/volist}
		          </select>
		        </span>
		    </div>
		</div>

		<div class="row cl">
		    <label class="form-label col-xs-3 col-ms-3">作者</label>
		    <div class="formControls col-xs-6 col-ms-6">
		        <input name="author" type="text" placeholder="请输入作者" value="{$data.author}" class="input-text radius">
		    </div>
		</div>

		<div class="row cl">
		    <label class="form-label col-xs-3 col-ms-3">关键字</label>
		    <div class="formControls col-xs-6 col-ms-6">
		        <input name="keyword" type="text" placeholder="请用 “,” 号分隔开,例如： php , java , liunx" value="{$data.keyword}" class="input-text radius">
		    </div>
		</div>

		<div class="row cl">
		    <label class="form-label col-xs-3 col-ms-3">内容</label>
		    <div class="formControls col-xs-6 col-ms-6">
		        <!-- <textarea  class="textarea radius" placeholder="说点什么..." rows="" cols="" name=""></textarea> -->
		        <script id="container" name="content" type="text/plain" style="width:100%;height:40%;">
		        	{$data.content}
		        </script>
		    </div>
		</div>

		<div class="row cl">
		    <label class="form-label col-xs-3 col-ms-3">能否删除</label>
		    <div class="skin-minimal">
		      <div class="radio-box">
		        <input type="radio" id="isdelete-1" class="ara-radio" name="is_delete" value="1" {$data.is_delete?'checked':''}/>
		        <label for="isdelete-1">可以</label>
		      </div>
		      <div class="radio-box">
		        <input type="radio" id="isdelete-2" class="ara-radio" name="is_delete" value="0" {$data.is_delete?'':'checked'}/>
		        <label for="isdelete-2">不能</label>
		      </div>
		    </div>
		</div>

		<div class="row cl">
		    <div class="formControls col-xs-6 col-xs-offset-3">
		        <input name="" type="button" class="btn btn-success radius mr-20 submit" value="保存">
		        <input name="" type="reset" class="btn btn-default radius" value="重置">
		    </div>
		</div>

	</form>

</div>

{/block}



{block name="script"}
	<script type="text/javascript" src="__LIB__/jquery/1.9.1/jquery.min.js"></script>

	<script type="text/javascript" src="__LIB__/ueditor/1.4.3/ueditor.config.js"></script>
	<script type="text/javascript" src="__LIB__/ueditor/1.4.3/ueditor.all.js"></script>
	<script type="text/javascript" src="__LIB__/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>

	<script type="text/javascript" src="__AJS__/article/edit.js"></script>
{/block}